import service from '../../utils/request'
export function adminLogin(payload = {}) {
    return service({
        url: '/admin/login',
        method: 'post',
        data: payload
    })
}
// 获取页面所有的数据
export function selectList(payload = {}) {
    return service({
        url: '/choose/findByLimit',
        method: 'post',
        data: payload
    })
}
export function accountList(payload = {}) {
    return service({
        url: '/count/findAllCount',
        method: 'get',
        params: payload
    })
}
export function billList(payload = {}) {
    return service({
        url: '/bill/selectAllBill',
        method: 'get',
        params: payload
    })
}
// 
export function selectAllBill(payload = {}) {
    return service({
        url: '/client/findAllclient',
        method: 'get',
        params: payload
    })
}
export function selectpack(payload = {}) {
    return service({
        url: '/pack/selectpack',
        method: 'get',
        params: payload
    })
}
export function selectchoose(payload = {}) {
    return service({
        url: '/choose/select',
        method: 'get',
        params: payload
    })
}
export function selectgoods(payload = {}) {
    return service({
        url: '/choose/findBylimitAndWaybill',
        method: 'get',
        params:payload
    })
}
export function selectdelete(payload = {}) {
    return service({
        url:'/choose/delete',
        method: 'DELETE',
        params:payload
    })
}
// 新增选货单
export function addgoods(payload = {}) {
    return service({
        url: '/choose/insert',
        method: 'post',
        data:payload
    })
}
export function findcode(payload = {}) {
    return service({
        url: '/choose/findBylimitAndWaybill',
        method: 'get',
        params:payload
    })
}

export function findpro(payload = {}) {
    return service({
        url: '/pro/findpro',
        method: 'get',
        params:payload
    })
}

export function findByTime(payload = {}) {
    return service({
        url: '/choose/findByTime',
        method: 'get',
        params:payload
    })
}
// 打包单  选择时间查询
export function pack_findTime(payload = {}) {
    return service({
        url: '/pack/selecttime',
        method: 'get',
        params:payload
    })
}
// 打包单  按单号查询
export function pack_Bypacke(payload = {}) {
    return service({
        url: '/pack/selectBypack',
        method: 'get',
        params:payload
    })
}
// 打包单  新增打包单
export function pack_insertpack(payload = {}) {
    return service({
        url: '/pack/insertpack',
        method: 'post',
        data:payload
    })
}
export function pack_add_insertpack(payload = {}) {
    return service({
        url: '/pack/selectpack',
        method: 'get',
        params:payload
    })
}
// 客户充值  按单号查询
export function account_selectByWaybill(payload = {}) {
    return service({
        url: '/client/selectByWaybill',
        method: 'get',
        params:payload
    })
}
// 客户账户管理  按名字查询
export function count_findByname(payload = {}) {
    return service({
        url: '/count/findByname',
        method: 'get',
        params:payload
    })
}
// 客户账户管理  按状态查询
export function count_findByStatus(payload = {}) {
    return service({
        url: '/count/findByStatus',
        method: 'get',
        params:payload
    })
}
// 客户账户管理  修改状态
export function count_updateByCount(payload = {}) {
    return service({
        url: '/count/updateByCount',
        method: 'post',
        data:payload
    })
}
// 客户充值管理  选择时间查询
export function selectByLimie(payload = {}) {
    return service({
        url: '/client/selectByLimie',
        method: 'get',
        params:payload
    })
}
// 客户充值管理  按单号查询
export function selectByWaybill(payload = {}) {
    return service({
        url: '/client/selectByWaybill',
        method: 'get',
        params:payload
    })
}
// 客户充值管理  按单删除
export function deteleByWayill(payload = {}) {
    return service({
        url: '/client/deteleByWayill',
        method: 'DELETE',
        params:payload
    })
}
// 客户充值管理  新增
export function addInsertclient(payload = {}) {
    return service({
        url: '/client/insertclient',
        method: 'post',
        data:payload
    })
}
// 客户账单管理  按照名字查询
export function selectByname(payload = {}) {
    return service({
        url: '/bill/selectByLimit',
        method: 'get',
        params:payload
    })
}
// 结算单管理  全查
export function findallsettle(payload = {}) {
    return service({
        url: '/settle/findallsettle',
        method: 'get',
        params:payload
    })
}
// 结算单管理  按单号查询
export function findsettle(payload = {}) {
    return service({
        url: '/settle/findsettle',
        method: 'get',
        params:payload
    })
}
// 结算单管理 新增
export function addaccount(payload = {}) {
    return service({
        url: '/settle/insertsettle',
        method: 'post',
        data:payload
    })
}